#include "app_menu.h"
#include "elog.h"
#include "config.h"
#include "app_dinogame.h"

// extern void x_oled1306_DrawBMP(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, unsigned char BMP[]);

void (*current_operation_index)();

unsigned char signal_BMP[] =
{
    0x00, 0x04, 0x0C, 0x14, 0x24, 0xFC, 0x24, 0x14, 0x0C, 0x04,\
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00,\
    0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x60, 0x60, 0x00,\
    0x78, 0x78, 0x00, 0x7E, 0x7E, 0x00, 0x7F, 0x7F, 0x00, 0x00,\
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned char gImage_bulethouch[100] =
{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x80, \
    0xFC, 0x48, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x01, \
    0x3F, 0x12, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned char gImage_engery[38] =
{
    0x00, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, \
    0x20, 0x20, 0x20, 0x20, 0xE0, 0x80, 0x80, 0x00, \
    0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, \
    0x04, 0x04, 0x04, 0x04, 0x07, 0x01, 0x01, 0x00,
};

unsigned char gImage_yes[38] =
{
    0x00, 0xF8, 0xFC, 0x04, 0x04, 0x04, 0x04, 0x04, \
    0x04, 0x84, 0xC4, 0x64, 0x24, 0xFC, 0xF8, 0x00, \
    0x00, 0x3F, 0x7F, 0x40, 0x41, 0x43, 0x46, 0x46, \
    0x43, 0x41, 0x40, 0x40, 0x40, 0x7F, 0x3F, 0x00,
};

unsigned char gImage_left[38] =
{
    0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, \
    0xF0, 0xF8, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x07, \
    0x0F, 0x1F, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned char gImage_right[38] =
{
    0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xF8, 0xF0, \
    0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x1F, 0x0F, \
    0x07, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00,
};

unsigned char gImage_back[38] =
{
    0x00, 0x00, 0x38, 0x7C, 0x7E, 0x5E, 0x18, 0x18, \
    0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0xF0, 0x00, \
    0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, \
    0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x1F, 0x00,
};

unsigned char gImage_home[294] =
{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, \
    0x80, 0xC0, 0xE0, 0xF0, 0x70, 0x38, 0x3C, 0x1E, \
    0x1E, 0x3C, 0x38, 0x70, 0xF0, 0xE0, 0xC0, 0x80, \
    0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, \
    0xF0, 0x70, 0x78, 0x3C, 0x1C, 0x0E, 0x0F, 0x07, \
    0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, \
    0x07, 0x0F, 0x0E, 0x1C, 0x3C, 0x78, 0x70, 0xF0, \
    0xE0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x0C, 0x0E, 0x0F, 0x07, 0x03, 0xF1, 0xF1, \
    0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, \
    0xF1, 0xF1, 0x03, 0x07, 0x0F, 0x0E, 0x0C, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, \
    0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0xF0, 0xF0, 0xF0, 0x70, 0x70, 0x70, 0x70, \
    0x70, 0x70, 0x70, 0x70, 0xF0, 0xF0, 0xF0, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, \
    0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, \
    0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, \
    0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, \
    0xFF, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, \
    0xE0, 0xFF, 0xFF, 0xFF, 0xE0, 0xE0, 0xE0, 0xE0, \
    0xE0, 0xE0, 0xE0, 0xE0, 0xFF, 0xFF, 0xFF, 0xE0, \
    0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xFF, \
    0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned char gImage_temp[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0xF8,
0x78,0x3C,0x1C,0x1C,0x1E,0x1E,0x1E,0x1C,0x3C,0x3C,0xF8,0xF8,0xF0,0xC0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,
0x00,0x00,0x00,0xF0,0xF8,0xF8,0xF8,0xF0,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x6A,
0x5A,0x5A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,
0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x6B,
0x6B,0x6B,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xF0,0xFC,0xFE,0x3F,0x0F,0x07,
0xC0,0xE0,0xF0,0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0xE0,0xC3,0x07,0x1F,0x3F,0xFC,0xF8,
0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xFF,0xFF,0xF0,0x80,0x00,0x1F,
0x3F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x3F,0x0E,0x00,0xC0,0xFF,0xFF,
0xFF,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x0F,0x1F,0x1E,
0x3C,0x3C,0x38,0x38,0x78,0x79,0x78,0x38,0x38,0x3C,0x3C,0x1E,0x0F,0x0F,0x07,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

unsigned char gImage_playgame[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0xC0,0x80,0x80,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x80,0x80,0xC0,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0xF8,0xFC,0x3E,0x1F,0x07,0x03,0x03,0x03,0x03,0x07,0x0F,0x1E,
0x0C,0x00,0x00,0x00,0x0C,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,
0x0F,0x0F,0x07,0x83,0xC3,0xC3,0xC7,0x8F,0x1F,0x7E,0xFC,0xF0,0xC0,0x00,0x00,0x00,
0x00,0xE0,0xFF,0xFF,0x7F,0x01,0x00,0x20,0x70,0x70,0xFC,0xFE,0xFE,0xFC,0x70,0x70,
0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0xF0,
0xF0,0xE0,0xC3,0x07,0x0F,0x0F,0x0F,0x07,0x03,0x00,0x03,0xFF,0xFF,0xFE,0xC0,0x00,
0x00,0x0F,0xFF,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x03,0x01,0x00,0xE0,
0xF0,0xF8,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x79,0xFB,0xF3,
0xF3,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFF,0xFF,0x1F,0x00,
0x00,0x00,0x01,0x07,0x1F,0x3F,0x7C,0x78,0x70,0xF0,0x70,0x70,0x78,0x3C,0x1F,0x0F,
0x07,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
0x0F,0x1F,0x3E,0x78,0x70,0x70,0xF0,0x70,0x70,0x7C,0x3F,0x1F,0x07,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
};

unsigned char gImage_setting[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xC0,0x80,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0xC0,0xF8,0xFF,0x3F,0x07,0x07,0x3F,0xFF,0xF8,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x80,0x80,0xC0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x0F,0x1F,0x7F,0xF9,0xE1,0x83,0x03,0x07,0x07,0x0E,
0x0E,0x07,0x07,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x01,0x03,0x03,0x07,0x07,0x0E,
0x0E,0x07,0x07,0x03,0x83,0xE1,0xF9,0x7F,0x1F,0x07,0x02,0x00,0x00,0x00,0x00,0x00,
0xE0,0xE0,0xE0,0x70,0x70,0x70,0x38,0x38,0x3F,0x1F,0x07,0x01,0x00,0x00,0x00,0x00,
0x00,0xE0,0xF0,0xF8,0x3C,0x1E,0x0E,0x0E,0x0E,0x0E,0x1E,0x3C,0xF8,0xF0,0xE0,0x00,
0x00,0x00,0x00,0x00,0x01,0x07,0x1F,0x3F,0x38,0x38,0x70,0x70,0x70,0xE0,0xE0,0xE0,
0x07,0x07,0x07,0x0E,0x0E,0x0E,0x1C,0x1C,0xFC,0xF8,0xE0,0x80,0x00,0x00,0x00,0x00,
0x00,0x07,0x0F,0x1F,0x3C,0x78,0x70,0x70,0x70,0x70,0x78,0x3C,0x1F,0x0F,0x07,0x00,
0x00,0x00,0x00,0x00,0x80,0xE0,0xF8,0x7C,0x1C,0x1C,0x0E,0x0E,0x0E,0x07,0x07,0x07,
0x00,0x00,0x00,0x00,0x00,0x40,0xF0,0xFC,0xFE,0x9F,0x87,0xC1,0xC0,0xE0,0xE0,0x70,
0xF0,0xE0,0xE0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xE0,0xE0,0x70,
0x70,0xE0,0xE0,0xC0,0xC1,0x87,0x9F,0xFE,0xF8,0xF0,0x40,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x03,0x01,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x1F,0xFF,0xFC,0xE0,0xE0,0xFC,0xFF,0x1F,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x03,0x03,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

unsigned char gImage_info[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0x70,0x38,0x38,0x1C,0x1C,
0x0E,0x0E,0x0E,0x0E,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x0E,0x0E,0x0E,0x0E,
0x1C,0x1C,0x38,0x38,0x70,0xF0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0xF0,0xFC,0x3E,0x0F,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x1E,0x3E,0x3E,0x1C,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0F,0x3E,0xFC,0xF0,0xE0,0x00,0x00,
0xF8,0xFF,0xFF,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x18,0x38,0x1C,0x1C,0x1C,0xDC,0xFE,0xFE,0x3E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xF8,
0x1F,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0xFC,0xFF,0x3F,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x1F,
0x00,0x00,0x07,0x0F,0x3F,0x7C,0xF0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x7C,0x7F,0x7F,0x3B,0x38,0x38,0x38,0x1C,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0x7C,0x3F,0x0F,0x07,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0F,0x0E,0x1C,0x3C,0x38,0x38,
0x70,0x70,0x70,0xE0,0xE0,0xE0,0xE0,0xE0,0xE0,0xE0,0xE0,0xE0,0xE0,0x70,0x70,0x70,
0x38,0x38,0x3C,0x1C,0x0E,0x0F,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

Menu_table table[30] =
{
    {0, 0, 1, 0, (*tok_home_page)},//first page
    {1, 2, 5, 0, (*tok_temperature_page)},//second page
    {2, 3, 6, 0, (*tok_palygame_page)},//second page
    {3, 4, 7, 0, (*tok_setting_page)},//second page
    {4, 1, 8, 0, (*tok_info_page)},//second page

    {5, 5, 5, 1, (*tok_dht11_page)},//third page
    {6, 6, 6, 2, (*tok_conrtolGame_page)},
    {7, 7, 9, 3, (*tok_set_page)},
    {8, 8, 8, 4, (*tok_information_page)},

    {9, 9, 7, 3, (*tok_led_page)},
};

void tok_home_page(void)
{
//    x_oled1306_DrawBMP(0, 0, 20, 3, signal_BMP);
//    x_oled1306_DrawBMP(20, 0, 36, 2, gImage_bulethouch);
//    x_oled1306_DrawBMP(112, 0, 128, 2, gImage_engery);
//    x_oled1306_DrawBMP(4, 6, 20, 8, gImage_yes);
//    x_oled1306_DrawBMP(12, 4, 28, 6, gImage_left);
//    x_oled1306_DrawBMP(40, 2, 88, 8, gImage_home);
//    x_oled1306_DrawBMP(99, 4, 115, 6, gImage_right);
//    x_oled1306_DrawBMP(107, 6, 123, 8, gImage_back);
    log_i("home_page");
}

void tok_temperature_page(void)
{
//    x_oled1306_DrawBMP(0, 0, 20, 3, signal_BMP);
//    x_oled1306_DrawBMP(20, 0, 36, 2, gImage_bulethouch);
//    x_oled1306_DrawBMP(112, 0, 128, 2, gImage_engery);
//    x_oled1306_DrawBMP(4, 6, 20, 8, gImage_yes);
//    x_oled1306_DrawBMP(12, 4, 28, 6, gImage_left);
//    x_oled1306_DrawBMP(40, 2, 88, 8, gImage_temp);
//    x_oled1306_DrawBMP(99, 4, 115, 6, gImage_right);
//    x_oled1306_DrawBMP(107, 6, 123, 8, gImage_back);
    log_i("temp_page");
}

void tok_palygame_page(void)
{
//    x_oled1306_DrawBMP(0, 0, 20, 3, signal_BMP);
//    x_oled1306_DrawBMP(20, 0, 36, 2, gImage_bulethouch);
//    x_oled1306_DrawBMP(112, 0, 128, 2, gImage_engery);
//    x_oled1306_DrawBMP(4, 6, 20, 8, gImage_yes);
//    x_oled1306_DrawBMP(12, 4, 28, 6, gImage_left);
//    x_oled1306_DrawBMP(40, 2, 88, 8, gImage_playgame);
//    x_oled1306_DrawBMP(99, 4, 115, 6, gImage_right);
//    x_oled1306_DrawBMP(107, 6, 123, 8, gImage_back);
    log_i("play_game_page");
}

void tok_setting_page(void)
{
//    x_oled1306_DrawBMP(0, 0, 20, 3, signal_BMP);
//    x_oled1306_DrawBMP(20, 0, 36, 2, gImage_bulethouch);
//    x_oled1306_DrawBMP(112, 0, 128, 2, gImage_engery);
//    x_oled1306_DrawBMP(4, 6, 20, 8, gImage_yes);
//    x_oled1306_DrawBMP(12, 4, 28, 6, gImage_left);
//    x_oled1306_DrawBMP(40, 2, 88, 8, gImage_setting);
//    x_oled1306_DrawBMP(99, 4, 115, 6, gImage_right);
//    x_oled1306_DrawBMP(107, 6, 123, 8, gImage_back);
    log_i("setting_page");
}

void tok_info_page(void)
{
//    x_oled1306_DrawBMP(0, 0, 20, 3, signal_BMP);
//    x_oled1306_DrawBMP(20, 0, 36, 2, gImage_bulethouch);
//    x_oled1306_DrawBMP(112, 0, 128, 2, gImage_engery);
//    x_oled1306_DrawBMP(4, 6, 20, 8, gImage_yes);
//    x_oled1306_DrawBMP(12, 4, 28, 6, gImage_left);
//    x_oled1306_DrawBMP(40, 2, 88, 8, gImage_info);
//    x_oled1306_DrawBMP(99, 4, 115, 6, gImage_right);
//    x_oled1306_DrawBMP(107, 6, 123, 8, gImage_back);
    log_i("info_page");
}

void tok_dht11_page(void)
{
    // OLED_ShowString(1, 1, "dht11");
    log_i("tok_dht11_page\r\n");
}

void tok_conrtolGame_page(void)
{
    Game_control();
    log_i("tok_conrtolGame_page\r\n");
}

void tok_set_page(void)
{
    OLED_ShowString(1, 1, "set page");
}

void tok_information_page(void)
{
    OLED_ShowString(1, 1, "Author:lwy");
    OLED_ShowString(2, 1, "Date:2023/4/17");
    OLED_ShowString(3, 1, "Lab: Multi-level menu");
}

void tok_led_page(void)
{
    GPIO_ResetBits(SYS_LEDPORT, SYS_LEDCTRL);
}

